package com.itheima.health;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * @author ：zhang
 * @date ：Created in 2020/11/29
 * @description ：
 * @version: 1.0
 */

@ServletComponentScan
@Slf4j
//@ServletComponentScan
@SpringBootApplication
@MapperScan("com.itheima.health.dao")
@EnableTransactionManagement //开启事务
@EnableScheduling   //开启任务调度
public class HealthApplication {

    public static void main(String[] args) {
        SpringApplication.run(HealthApplication.class, args);

        System.out.println("         #             ##########               #   #   #   #       \n" +
                "     #   ##             #  ##  #         #########  ######  ##  #   \n" +
                "     ##  ##       #   # #########  #   #   ## ##    ## ##  #######  \n" +
                "     ##  ##       ##### ##    ##   ######  ## ##    ## ##  ##  ##   \n" +
                "     ##  ##       ## ## ########   ## ##  ##  ##    ## ## # # ##    \n" +
                "     ##  ##       ## ## ##    ##   ## ##  ##  ##    #####    ##     \n" +
                "     ##  ##       ## ## ########   ## ## #########  # # #   ####    \n" +
                "     ##  ##       ## ## ##    ##   ## ##  #   ##      ##   ##  ##   \n" +
                "     ##   ##      ## ## ########   ## ##     ###      ## ###    ### \n" +
                "    ##    ##      ## ##   ## ##    ## ##    ####      #### #######  \n" +
                "    ##    ##      ## ############  #####   ## ##    # ##   ##  ##   \n" +
                "   ##      ##     #####   ## #     ## #   ##  ##    # ## # ##  ##   \n" +
                "   ##      ###    #  #     ####    #     ##   ##    # ###  ##  ##   \n" +
                "  ##        ###           ####  #       ##    ##    ####   ##  ##   \n" +
                "  #          ###         ## #####     ##    ####    ##     ######   \n" +
                " #            #        ##    ###              #            #   #    \n" +
                "\n");

    }



}